
CREATE TABLE [CodeMetric](
	[IdCodeMetric] [bigint] IDENTITY(1,1) NOT NULL,
	[Revision] [int] NULL,
	[Scope] [nvarchar](255) NULL,
	[Project] [nvarchar](255) NULL,
	[Namespace] [nvarchar](255) NULL,
	[Type] [nvarchar](255) NULL,
	[Member] [nvarchar](255) NULL,
	[Maintainability] [int] NULL,
	[CyclomaticComplexity] [int] NULL,
	[DepthOfInheritance] [int] NULL,
	[ClassCoupling] [int] NULL,
	[LinesOfCode] [int] NULL,
	[TimeStamp] [datetime] NULL,
PRIMARY KEY CLUSTERED 
(	[IdCodeMetric] DESC )
) ON [PRIMARY]
GO

ALTER TABLE [CodeMetric] ADD  DEFAULT (getdate()) FOR [TimeStamp]
GO

